import request from '@/router/axios';
import serviceList from '@/config/serviceList'
import {baseURL} from '@/api/common';

const {aihumanCore} = serviceList

export const uploadFile = (data, onUploadProgress = null) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/xrMinio/upload`,
    method: 'post',
    timeout: 0,
    onUploadProgress,
    data
  })
}
